#include "floorview/floorscene.h"

FloorScene::FloorScene()
{
	m_pixmap_back.load(":/floorview/floor_1.png");
	m_pixmap_front.load(":/floorview/floor_1.png");

}

void FloorScene::drawForeground(QPainter *painter, const QRectF & rect) {
	QList<QGraphicsView*> vList = this->views();
	painter->drawPixmap(QPoint(5, (vList.first()->verticalScrollBar()->value())
			+ 451), m_pixmap_back);
}

void FloorScene::drawBackground(QPainter *painter, const QRectF & rect) {
	QList<QGraphicsView*> vList = this->views();
	painter->drawPixmap(5, vList.first()->verticalScrollBar()->value(),
			m_pixmap_front);
}
